<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$newsletter->subject}</title>

</head>
<body>


<table width="600" cellspacing="2" cellpadding="2" border="1" summary="">
	{if $renderType=='email'}
		<tr>
			<td><font size="1"><a href="">Kui te ei näe seda e-kirja korrektselt vajutage siia</a></font></td>
		</tr>
	{/if}
	<tr>
		<td><h1>Uudiskiri</h1></td>
	</tr>
	{foreach item=i from=$blocks}
	<tr>
		<td>
			<table width="100%" cellspacing="2" cellpadding="2" border="1" summary="">
				<tr>
					<td colspan="2"><h1>{$i->title}</h1></td>
				</tr>
				{if $i->imagePosition == "top" && $i->image->exists()}
					<tr>
						<td><center><img src="{$i->image->getUrl()}" alt="" /></center></td>
					</tr>
				{/if}
				<tr>
					{if $i->imagePosition == "left" && $i->image->exists()}
						<td><img src="{$i->image->getUrl()}" alt="" /></td>
					{/if}
					<td width="90%">
						<p>{$i->contents}</p><br />
						<a href="{$i->readMoreLink}" target="_blank">Loe edasi</a>
					</td>
					{if $i->imagePosition == "right" && $i->image->exists()}
						<td><img src="{$i->image->getUrl()}" alt="" /></td>
					{/if}
				</tr>
				{if $i->imagePosition == "bottom" && $i->image->exists()}
					<tr>
						<td rowspan="2"><center><img src="{$i->image->getUrl()}" alt="" /></center></td>
					</tr>
				{/if}
			</table>
		</td>
	</tr>
	{/foreach}
	<tr>
		<td><a href="">Registreeru listist maha</a></td>
	</tr>
</table>

</body>
</html>